#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int a, b, c;
	cin >> a >> b >> c;
	int mn = min(a, min(b, c));
	int mx = max(a, max(b, c));
	cout << mn / __gcd(mn, mx) << "/" << mx / __gcd(mn, mx);
	return 0;
}
